#!/bin/bash
if [ `whoami` != 'root' ]; then
	echo "Please run this program as root (type: sudo ./fixmodules)"
	exit
fi
echo Updating the netfilter kernel modules...
rm /lib/modules/2.6.15-27-386/kernel/net/ipv4/netfilter/*.ko
cp /lib/modules/2.6.15-27-386/kernel/net/ipv4/netfilter/new/*.ko /lib/modules/2.6.15-27-386/kernel/net/ipv4/netfilter/
rm /lib/modules/2.6.15-27-386/kernel/net/netfilter/*.ko
cp /lib/modules/2.6.15-27-386/kernel/net/netfilter/new/*.ko /lib/modules/2.6.15-27-386/kernel/net/netfilter/
echo Done.
